<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="html/html; charset=utf-8" />
		<title>CCColor Class Reference</title>
		<meta id="xcode-display" name="xcode-display" content="render"/>
		<link rel="stylesheet" type="text/css" href="../css/styles.css" media="all" />
		<link rel="stylesheet" type="text/css" media="print" href="../css/stylesPrint.css" />
		<meta name="generator" content="appledoc 2.2 (build 963)" />
	</head>
	<body>
		<header id="top_header">
			<div id="library" class="hideInXcode">
				<h1><a id="libraryTitle" href="../index.html">Cocos2D </a></h1>
				<a id="developerHome" href="../index.html">3.2.0</a>
			</div>
			
			<div id="title" role="banner">
				<h1 class="hideInXcode">CCColor Class Reference</h1>
			</div>
			<ul id="headerButtons" role="toolbar">
				<li id="toc_button">
					<button aria-label="Show Table of Contents" role="checkbox" class="open" id="table_of_contents"><span class="disclosure"></span>Table of Contents</button>
				</li>
				<li id="jumpto_button" role="navigation">
					<select id="jumpTo">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	
	
	
	
	<option value="tasks">Tasks</option>
	
	
	
	
	
	<option value="properties">Properties</option>
	
	<option value="//api/name/CGColor">&nbsp;&nbsp;&nbsp;&nbsp;CGColor</option>
	
	<option value="//api/name/NSColor">&nbsp;&nbsp;&nbsp;&nbsp;NSColor</option>
	
	<option value="//api/name/UIColor">&nbsp;&nbsp;&nbsp;&nbsp;UIColor</option>
	
	
	
	
	<option value="class_methods">Class Methods</option>
	
	<option value="//api/name/blackColor">&nbsp;&nbsp;&nbsp;&nbsp;+ blackColor</option>
	
	<option value="//api/name/blueColor">&nbsp;&nbsp;&nbsp;&nbsp;+ blueColor</option>
	
	<option value="//api/name/brownColor">&nbsp;&nbsp;&nbsp;&nbsp;+ brownColor</option>
	
	<option value="//api/name/clearColor">&nbsp;&nbsp;&nbsp;&nbsp;+ clearColor</option>
	
	<option value="//api/name/colorWithCGColor:">&nbsp;&nbsp;&nbsp;&nbsp;+ colorWithCGColor:</option>
	
	<option value="//api/name/colorWithRed:green:blue:">&nbsp;&nbsp;&nbsp;&nbsp;+ colorWithRed:green:blue:</option>
	
	<option value="//api/name/colorWithRed:green:blue:alpha:">&nbsp;&nbsp;&nbsp;&nbsp;+ colorWithRed:green:blue:alpha:</option>
	
	<option value="//api/name/colorWithUIColor:">&nbsp;&nbsp;&nbsp;&nbsp;+ colorWithUIColor:</option>
	
	<option value="//api/name/colorWithWhite:alpha:">&nbsp;&nbsp;&nbsp;&nbsp;+ colorWithWhite:alpha:</option>
	
	<option value="//api/name/cyanColor">&nbsp;&nbsp;&nbsp;&nbsp;+ cyanColor</option>
	
	<option value="//api/name/darkGrayColor">&nbsp;&nbsp;&nbsp;&nbsp;+ darkGrayColor</option>
	
	<option value="//api/name/grayColor">&nbsp;&nbsp;&nbsp;&nbsp;+ grayColor</option>
	
	<option value="//api/name/greenColor">&nbsp;&nbsp;&nbsp;&nbsp;+ greenColor</option>
	
	<option value="//api/name/lightGrayColor">&nbsp;&nbsp;&nbsp;&nbsp;+ lightGrayColor</option>
	
	<option value="//api/name/magentaColor">&nbsp;&nbsp;&nbsp;&nbsp;+ magentaColor</option>
	
	<option value="//api/name/orangeColor">&nbsp;&nbsp;&nbsp;&nbsp;+ orangeColor</option>
	
	<option value="//api/name/purpleColor">&nbsp;&nbsp;&nbsp;&nbsp;+ purpleColor</option>
	
	<option value="//api/name/redColor">&nbsp;&nbsp;&nbsp;&nbsp;+ redColor</option>
	
	<option value="//api/name/whiteColor">&nbsp;&nbsp;&nbsp;&nbsp;+ whiteColor</option>
	
	<option value="//api/name/yellowColor">&nbsp;&nbsp;&nbsp;&nbsp;+ yellowColor</option>
	
	
	
	
	<option value="instance_methods">Instance Methods</option>
	
	<option value="//api/name/colorWithAlphaComponent:">&nbsp;&nbsp;&nbsp;&nbsp;- colorWithAlphaComponent:</option>
	
	<option value="//api/name/initWithCGColor:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithCGColor:</option>
	
	<option value="//api/name/initWithRed:green:blue:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithRed:green:blue:</option>
	
	<option value="//api/name/initWithRed:green:blue:alpha:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithRed:green:blue:alpha:</option>
	
	<option value="//api/name/initWithUIColor:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithUIColor:</option>
	
	<option value="//api/name/initWithWhite:alpha:">&nbsp;&nbsp;&nbsp;&nbsp;- initWithWhite:alpha:</option>
	
	<option value="//api/name/interpolateTo:alpha:">&nbsp;&nbsp;&nbsp;&nbsp;- interpolateTo:alpha:</option>
	
	
	
</select>
				</li>
			</ul>
		</header>
		<nav id="tocContainer" class="isShowingTOC">
			<ul id="toc" role="tree">
				
<li role="treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#overview">Overview</a></span></li>




<li role="treeitem" id="task_treeitem"><span class="nodisclosure"></span><span class="sectionName"><a href="#tasks">Tasks</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating a CCColor Object from Component Values">Creating a CCColor Object from Component Values</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Initializing a CCColor Object">Initializing a CCColor Object</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Creating a CCColor with Preset Component Values">Creating a CCColor with Preset Component Values</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Accessing Color Attributes">Accessing Color Attributes</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#task_Color Helpers">Color Helpers</a></span></li>
	
</ul></li>





<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#properties">Properties</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/CGColor">CGColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/NSColor">NSColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/UIColor">UIColor</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#class_methods">Class Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/blackColor">blackColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/blueColor">blueColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/brownColor">brownColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/clearColor">clearColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/colorWithCGColor:">colorWithCGColor:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/colorWithRed:green:blue:">colorWithRed:green:blue:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/colorWithRed:green:blue:alpha:">colorWithRed:green:blue:alpha:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/colorWithUIColor:">colorWithUIColor:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/colorWithWhite:alpha:">colorWithWhite:alpha:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/cyanColor">cyanColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/darkGrayColor">darkGrayColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/grayColor">grayColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/greenColor">greenColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/lightGrayColor">lightGrayColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/magentaColor">magentaColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/orangeColor">orangeColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/purpleColor">purpleColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/redColor">redColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/whiteColor">whiteColor</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/yellowColor">yellowColor</a></span></li>
	
</ul></li>



<li role="treeitem" class="children"><span class="disclosure"></span><span class="sectionName"><a href="#instance_methods">Instance Methods</a></span><ul>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/colorWithAlphaComponent:">colorWithAlphaComponent:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithCGColor:">initWithCGColor:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithRed:green:blue:">initWithRed:green:blue:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithRed:green:blue:alpha:">initWithRed:green:blue:alpha:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithUIColor:">initWithUIColor:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/initWithWhite:alpha:">initWithWhite:alpha:</a></span></li>
	
	<li><span class="nodisclosure"></span><span class="sectionName"><a href="#//api/name/interpolateTo:alpha:">interpolateTo:alpha:</a></span></li>
	
</ul></li>


			</ul>
		</nav>
		<article>
			<div id="contents" class="isShowingTOC" role="main">
				<a title="CCColor Class Reference" name="top"></a>
				<div class="main-navigation navigation-top">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="header">
					<div class="section-header">
						<h1 class="title title-header">CCColor Class Reference</h1>
					</div>		
				</div>
				<div id="container">	
					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<td class="specification-title">Inherits from</td>
	<td class="specification-value">NSObject</td>
</tr><tr>
	<td class="specification-title">Declared in</td>
	<td class="specification-value">CCColor.h</td>
</tr>
						</tbody></table></div>
					
                    
                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<p>A CCColor object represents color and sometimes opacity (alpha value) for use with Cocos2D objects.</p>
					</div>
					
					
					
					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						<h2 class="subtitle subtitle-tasks">Tasks</h2>
						
						
						<a title="Creating a CCColor Object from Component Values" name="task_Creating a CCColor Object from Component Values"></a>
						<h3 class="subsubtitle task-title">Creating a CCColor Object from Component Values</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/colorWithWhite:alpha:">+&nbsp;colorWithWhite:alpha:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/colorWithRed:green:blue:alpha:">+&nbsp;colorWithRed:green:blue:alpha:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/colorWithRed:green:blue:">+&nbsp;colorWithRed:green:blue:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/colorWithCGColor:">+&nbsp;colorWithCGColor:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/colorWithAlphaComponent:">&ndash;&nbsp;colorWithAlphaComponent:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/colorWithUIColor:">+&nbsp;colorWithUIColor:</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Initializing a CCColor Object" name="task_Initializing a CCColor Object"></a>
						<h3 class="subsubtitle task-title">Initializing a CCColor Object</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithWhite:alpha:">&ndash;&nbsp;initWithWhite:alpha:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithRed:green:blue:alpha:">&ndash;&nbsp;initWithRed:green:blue:alpha:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithRed:green:blue:">&ndash;&nbsp;initWithRed:green:blue:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithCGColor:">&ndash;&nbsp;initWithCGColor:</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/initWithUIColor:">&ndash;&nbsp;initWithUIColor:</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Creating a CCColor with Preset Component Values" name="task_Creating a CCColor with Preset Component Values"></a>
						<h3 class="subsubtitle task-title">Creating a CCColor with Preset Component Values</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/blackColor">+&nbsp;blackColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/darkGrayColor">+&nbsp;darkGrayColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/lightGrayColor">+&nbsp;lightGrayColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/whiteColor">+&nbsp;whiteColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/grayColor">+&nbsp;grayColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/redColor">+&nbsp;redColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/greenColor">+&nbsp;greenColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/blueColor">+&nbsp;blueColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/cyanColor">+&nbsp;cyanColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/yellowColor">+&nbsp;yellowColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/magentaColor">+&nbsp;magentaColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/orangeColor">+&nbsp;orangeColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/purpleColor">+&nbsp;purpleColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/brownColor">+&nbsp;brownColor</a></code>
	</span>
	
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/clearColor">+&nbsp;clearColor</a></code>
	</span>
	
	
</li>
						</ul>
						
						
						<a title="Accessing Color Attributes" name="task_Accessing Color Attributes"></a>
						<h3 class="subsubtitle task-title">Accessing Color Attributes</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/CGColor">&nbsp;&nbsp;CGColor</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/UIColor">&nbsp;&nbsp;UIColor</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li><li>
	<span class="tooltip">
		<code><a href="#//api/name/NSColor">&nbsp;&nbsp;NSColor</a></code>
	</span>
	<span class="task-item-suffix">property</span>
	
</li>
						</ul>
						
						
						<a title="Color Helpers" name="task_Color Helpers"></a>
						<h3 class="subsubtitle task-title">Color Helpers</h3>

						<ul class="task-list">
							<li>
	<span class="tooltip">
		<code><a href="#//api/name/interpolateTo:alpha:">&ndash;&nbsp;interpolateTo:alpha:</a></code>
	</span>
	
	
</li>
						</ul>
						
					</div>
					
					
					
					
					
					<div class="section section-methods">
						<a title="Properties" name="properties"></a>
						<h2 class="subtitle subtitle-methods">Properties</h2>
						
						<div class="section-method">
	<a name="//api/name/CGColor" title="CGColor"></a>
	<h3 class="subsubtitle method-title">CGColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The Quartz color reference that corresponds to the CCColor color.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) CGColorRef CGColor</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/NSColor" title="NSColor"></a>
	<h3 class="subsubtitle method-title">NSColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The NSColor color reference that corresponds to the CCColor color.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) *NSColor</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/UIColor" title="UIColor"></a>
	<h3 class="subsubtitle method-title">UIColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>The UIColor color reference that corresponds to the CCColor color.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>@property (nonatomic, readonly) *UIColor</code></div>

    
	
	
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Class Methods" name="class_methods"></a>
						<h2 class="subtitle subtitle-methods">Class Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/blackColor" title="blackColor"></a>
	<h3 class="subsubtitle method-title">blackColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)blackColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/blueColor" title="blueColor"></a>
	<h3 class="subsubtitle method-title">blueColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 0.0, 0.0, and 1.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)blueColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/brownColor" title="brownColor"></a>
	<h3 class="subsubtitle method-title">brownColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 0.6, 0.4, and 0.2 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)brownColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/clearColor" title="clearColor"></a>
	<h3 class="subsubtitle method-title">clearColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 0.0, 0.0, and 0.0 and whose <a href="#//api/name/alpha">alpha</a> value is 0.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)clearColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/colorWithCGColor:" title="colorWithCGColor:"></a>
	<h3 class="subsubtitle method-title">colorWithCGColor:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates and returns a color object using the specified Quartz color reference.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)colorWithCGColor:(CGColorRef)<em>cgColor</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>cgColor</em></dt>
			<dd><p>A reference to a Quartz color.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/colorWithRed:green:blue:" title="colorWithRed:green:blue:"></a>
	<h3 class="subsubtitle method-title">colorWithRed:green:blue:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates and returns a color object using the specified opacity and RGB component values. Alpha will default to 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)colorWithRed:(float)<em>red</em> green:(float)<em>green</em> blue:(float)<em>blue</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>red</em></dt>
			<dd><p>The <a href="#//api/name/red">red</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>green</em></dt>
			<dd><p>The <a href="#//api/name/green">green</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>blue</em></dt>
			<dd><p>The <a href="#//api/name/blue">blue</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/colorWithRed:green:blue:alpha:" title="colorWithRed:green:blue:alpha:"></a>
	<h3 class="subsubtitle method-title">colorWithRed:green:blue:alpha:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates and returns a color object using the specified opacity and RGBA component values.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)colorWithRed:(float)<em>red</em> green:(float)<em>green</em> blue:(float)<em>blue</em> alpha:(float)<em>alpha</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>red</em></dt>
			<dd><p>The <a href="#//api/name/red">red</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>green</em></dt>
			<dd><p>The <a href="#//api/name/green">green</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>blue</em></dt>
			<dd><p>The <a href="#//api/name/blue">blue</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>alpha</em></dt>
			<dd><p>The opacity value of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/colorWithUIColor:" title="colorWithUIColor:"></a>
	<h3 class="subsubtitle method-title">colorWithUIColor:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Converts a <a href="#//api/name/UIColor">UIColor</a> object to its CCColor equivalent.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)colorWithUIColor:(UIColor *)<em>color</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>color</em></dt>
			<dd><p><a href="#//api/name/UIColor">UIColor</a> object.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/colorWithWhite:alpha:" title="colorWithWhite:alpha:"></a>
	<h3 class="subsubtitle method-title">colorWithWhite:alpha:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates and returns a color object using the specified opacity and grayscale values.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)colorWithWhite:(float)<em>white</em> alpha:(float)<em>alpha</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>white</em></dt>
			<dd><p>The grayscale value of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>alpha</em></dt>
			<dd><p>The opacity value of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/cyanColor" title="cyanColor"></a>
	<h3 class="subsubtitle method-title">cyanColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 0.0, 1.0, and 1.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0..</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)cyanColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/darkGrayColor" title="darkGrayColor"></a>
	<h3 class="subsubtitle method-title">darkGrayColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose grayscale value is 1/3 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)darkGrayColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/grayColor" title="grayColor"></a>
	<h3 class="subsubtitle method-title">grayColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose grayscale value is 0.5 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)grayColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/greenColor" title="greenColor"></a>
	<h3 class="subsubtitle method-title">greenColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)greenColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/lightGrayColor" title="lightGrayColor"></a>
	<h3 class="subsubtitle method-title">lightGrayColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose grayscale value is 2/3 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)lightGrayColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/magentaColor" title="magentaColor"></a>
	<h3 class="subsubtitle method-title">magentaColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 1.0, 0.0, and 1.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)magentaColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/orangeColor" title="orangeColor"></a>
	<h3 class="subsubtitle method-title">orangeColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 1.0, 0.5, and 0.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0..</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)orangeColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/purpleColor" title="purpleColor"></a>
	<h3 class="subsubtitle method-title">purpleColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 0.5, 0.0, and 0.5 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)purpleColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/redColor" title="redColor"></a>
	<h3 class="subsubtitle method-title">redColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 1.0, 0.0, and 0.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)redColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/whiteColor" title="whiteColor"></a>
	<h3 class="subsubtitle method-title">whiteColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose grayscale value is 1.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)whiteColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/yellowColor" title="yellowColor"></a>
	<h3 class="subsubtitle method-title">yellowColor</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Returns a color object whose RGB values are 1.0, 1.0, and 0.0 and whose <a href="#//api/name/alpha">alpha</a> value is 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>+ (CCColor *)yellowColor</code></div>

    
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The CCColor object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
					
					<div class="section section-methods">
						<a title="Instance Methods" name="instance_methods"></a>
						<h2 class="subtitle subtitle-methods">Instance Methods</h2>
						
						<div class="section-method">
	<a name="//api/name/colorWithAlphaComponent:" title="colorWithAlphaComponent:"></a>
	<h3 class="subsubtitle method-title">colorWithAlphaComponent:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Creates and returns a color object that has the same color space and component values as the receiver, but has the specified <a href="#//api/name/alpha">alpha</a> component.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCColor *)colorWithAlphaComponent:(float)<em>alpha</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>alpha</em></dt>
			<dd><p>The opacity value of the new CCColor object.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithCGColor:" title="initWithCGColor:"></a>
	<h3 class="subsubtitle method-title">initWithCGColor:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes and returns a color object using the specified Quartz color reference.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCColor *)initWithCGColor:(CGColorRef)<em>cgColor</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>cgColor</em></dt>
			<dd><p>A reference to a Quartz color.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>An initialized color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithRed:green:blue:" title="initWithRed:green:blue:"></a>
	<h3 class="subsubtitle method-title">initWithRed:green:blue:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes and returns a color object using the specified opacity and RGB component values. Alpha will default to 1.0.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCColor *)initWithRed:(float)<em>red</em> green:(float)<em>green</em> blue:(float)<em>blue</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>red</em></dt>
			<dd><p>The <a href="#//api/name/red">red</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>green</em></dt>
			<dd><p>The <a href="#//api/name/green">green</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>blue</em></dt>
			<dd><p>The <a href="#//api/name/blue">blue</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>An initialized color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithRed:green:blue:alpha:" title="initWithRed:green:blue:alpha:"></a>
	<h3 class="subsubtitle method-title">initWithRed:green:blue:alpha:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes and returns a color object using the specified opacity and RGBA component values.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCColor *)initWithRed:(float)<em>red</em> green:(float)<em>green</em> blue:(float)<em>blue</em> alpha:(float)<em>alpha</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>red</em></dt>
			<dd><p>The <a href="#//api/name/red">red</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>green</em></dt>
			<dd><p>The <a href="#//api/name/green">green</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>blue</em></dt>
			<dd><p>The <a href="#//api/name/blue">blue</a> component of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>alpha</em></dt>
			<dd><p>The opacity value of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>An initialized color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithUIColor:" title="initWithUIColor:"></a>
	<h3 class="subsubtitle method-title">initWithUIColor:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes and returns a <a href="#//api/name/UIColor">UIColor</a> object to its CCColor equivalent.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCColor *)initWithUIColor:(UIColor *)<em>color</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>color</em></dt>
			<dd><p><a href="#//api/name/UIColor">UIColor</a> object.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>An initialized color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/initWithWhite:alpha:" title="initWithWhite:alpha:"></a>
	<h3 class="subsubtitle method-title">initWithWhite:alpha:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Initializes and returns a color object using the specified opacity and grayscale values.</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCColor *)initWithWhite:(float)<em>white</em> alpha:(float)<em>alpha</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>white</em></dt>
			<dd><p>The grayscale value of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>alpha</em></dt>
			<dd><p>The opacity value of the color object, specified as a value from 0.0 to 1.0.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>An initialized color object.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
						<div class="section-method">
	<a name="//api/name/interpolateTo:alpha:" title="interpolateTo:alpha:"></a>
	<h3 class="subsubtitle method-title">interpolateTo:alpha:</h3>
	
	
	
	<div class="method-subsection brief-description">
		<p>Linearly interpolate from this color to &lsquo;toColor&rsquo;. Parameter <a href="#//api/name/alpha">alpha</a> is normalised</p>
	</div>		
	
    

	<div class="method-subsection method-declaration"><code>- (CCColor *)interpolateTo:(CCColor *)<em>toColor</em> alpha:(float)<em>alpha</em></code></div>

    
	
	<div class="method-subsection arguments-section parameters">
		<h4 class="method-subtitle parameter-title">Parameters</h4>
		
		<dl class="argument-def parameter-def">
			<dt><em>toColor</em></dt>
			<dd><p>Color to interpolate to.</p></dd>
		</dl>
		
		<dl class="argument-def parameter-def">
			<dt><em>alpha</em></dt>
			<dd><p>Normalised <a href="#//api/name/alpha">alpha</a> opacity of toColor.</p></dd>
		</dl>
		
	</div>
	
	
	
	<div class="method-subsection return">
		<h4 class="method-subtitle parameter-title">Return Value</h4>
		<p>The interpolated color.</p>
	</div>
	
	
	
	
	
	
	
	
	
	
	
	<div class="method-subsection declared-in-section">
		<h4 class="method-subtitle">Declared In</h4>
		<code class="declared-in-ref">CCColor.h</code><br />
	</div>				
	
	
</div>
						
					</div>
					
					
                    
                    
				</div>
				<div class="main-navigation navigation-bottom">
					<ul>
	<li><a href="../index.html">Index</a></li>
	<li><a href="../hierarchy.html">Hierarchy</a></li>
</ul>
				</div>
				<div id="footer">
					<hr />
					<div class="footer-copyright">
						<p><span class="copyright">&copy; 2014 3.2.0. All rights reserved. (Last updated: 2014-08-12)</span><br />
						
						<span class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2 (build 963)</a>.</span></p>
						
					</div>
				</div>
			</div>
		</article>
		<script type="text/javascript">
			function jumpToChange()
			{
				window.location.hash = this.options[this.selectedIndex].value;
			}
			
			function toggleTOC()
			{
				var contents = document.getElementById('contents');
				var tocContainer = document.getElementById('tocContainer');
				
				if (this.getAttribute('class') == 'open')
				{
					this.setAttribute('class', '');
					contents.setAttribute('class', '');
					tocContainer.setAttribute('class', '');
					
					window.name = "hideTOC";
				}
				else
				{
					this.setAttribute('class', 'open');
					contents.setAttribute('class', 'isShowingTOC');
					tocContainer.setAttribute('class', 'isShowingTOC');
					
					window.name = "";
				}
				return false;
			}
			
			function toggleTOCEntryChildren(e)
			{
				e.stopPropagation();
				var currentClass = this.getAttribute('class');
				if (currentClass == 'children') {
					this.setAttribute('class', 'children open');
				}
				else if (currentClass == 'children open') {
					this.setAttribute('class', 'children');
				}
				return false;
			}
			
			function tocEntryClick(e)
			{
				e.stopPropagation();
				return true;
			}
			
			function init()
			{
				var selectElement = document.getElementById('jumpTo');
				selectElement.addEventListener('change', jumpToChange, false);
				
				var tocButton = document.getElementById('table_of_contents');
				tocButton.addEventListener('click', toggleTOC, false);
				
				var taskTreeItem = document.getElementById('task_treeitem');
				if (taskTreeItem.getElementsByTagName('li').length > 0)
				{
					taskTreeItem.setAttribute('class', 'children');
					taskTreeItem.firstChild.setAttribute('class', 'disclosure');
				}
				
				var tocList = document.getElementById('toc');
				
				var tocEntries = tocList.getElementsByTagName('li');
				for (var i = 0; i < tocEntries.length; i++) {
					tocEntries[i].addEventListener('click', toggleTOCEntryChildren, false);
				}
				
				var tocLinks = tocList.getElementsByTagName('a');
				for (var i = 0; i < tocLinks.length; i++) {
					tocLinks[i].addEventListener('click', tocEntryClick, false);
				}
				
				if (window.name == "hideTOC") {
					toggleTOC.call(tocButton);
				}
			}
			
			window.onload = init;
			
			// If showing in Xcode, hide the TOC and Header
			if (navigator.userAgent.match(/xcode/i)) {
				document.getElementById("contents").className = "hideInXcode"
				document.getElementById("tocContainer").className = "hideInXcode"
				document.getElementById("top_header").className = "hideInXcode"
			}
			
		</script>
	</body>
</html>